class Ccastle
	attr_accessor :tile, :tile_top, :tile_left, :local_tile_top, :local_tile_left, :hab_id, :globalx, :globaly
        def initialize (id,x,y,xpixel,ypixel)
                @id     = id
                @x      = x
                @y      = y
				@xpixel = xpixel
				@ypixel = ypixel
        end
        def getx
                return @x
        end
        def gety
                return @y
        end
        def setx(x)
                @x = x
        end
        def sety(y)
                @y = y
        end
        def id
                return @id
        end
        def getxpixel
                return @xpixel
        end
        def getypixel
                return @ypixel
        end
		
		def info
			puts @id.to_s + "  " + globalx.to_s + "  " + globaly.to_s 
		end
end

class CPlayerCastle
	attr_accessor :points, :sp, :sw, :bow, :cb, :ar, :lr, :hk, :ok, :wood, :stone, :ore, :people, :copper, :silver,:name
	def initialize(name)
		@name = name
	end
	
	def getName
		return @name
	end
end

class CMoveAction
	def initialize(dist,xmove,ymove)
		@dist = dist
		@xmove = xmove
		@ymove = ymove
	end
	
	def get_xmove
		return @xmove
	end
	
	def get_ymove
		return @ymove
	end
	
	def getdist
		return @dist
	end
end
